<?php

namespace App\Vilidate\playlet;

/**
 * user控制器下的验证规则类
 */
class CompanyController
{
    public $index = ['rule'=>[], 'msg'=>[]];

    public $view = ['rule'=>[], 'msg'=>[]];

    public $delete = ['rule'=>[], 'msg'=>[]];

    public $create = [
        'rule'=>[
            'name' => 'required',
            'status' => 'required',
        ],
        'msg'=>[
            'name.required' => '名称不能为空',
            'status.required' => '状态不能为空',
        ]
    ];

    public $update = [
        'rule'=>[
            'name' => 'required',
            'status' => 'required',
        ],
        'msg'=>[
            'name.required' => '用户名不能为空',
            'status.required' => '状态不能为空',
        ]
    ];
}